using System.Collections;
using System.Collections.Generic;
using Base;
using UnityEngine;
using UnityEngine.UI;

public class SettingPanel : MonoBehaviour
{
    [SerializeField] private Button backBtn;
    void Start()
    {
        backBtn.onClick.AddListener(OnClosePanel);
    }

    private void OnClosePanel()
    { 
        EventCenterManager.Instance.Dispatch(EventCommand.PanelShow,UIPanelShow.LobbyPanel);
        gameObject.SetActive(false);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
